package util;
import java.io.*;
import com.sun.lwuit.Form;
import javax.microedition.media.*;
import javax.microedition.media.control.VideoControl;

import javax.microedition.lcdui.*;

/**
 *
 * @author Kealan
 */
public class Visual{
public void playVid(String name,Form f){
  try
  {
    String url = "name";
    Player p = Manager.createPlayer(url);
    p.realize();
    
    VideoControl video = (VideoControl) p.getControl("VideoControl");
    Item videoItem = (Item)video.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, null);
  //  videoForm.append(videoItem);
    //f.addComponent(videoItem);
    p.start();
  }
  catch(Exception e)
  {}
}
}
